<?php
$tdatappmain=array();
	$tdatappmain[".ShortName"]="ppmain";
	$tdatappmain[".OwnerID"]="";
	$tdatappmain[".OriginalTable"]="ppmain";


	
//	field labels
$fieldLabelsppmain = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsppmain["English"]=array();
	$fieldToolTipsppmain["English"]=array();
	$fieldLabelsppmain["English"]["ID"] = "ID";
	$fieldToolTipsppmain["English"]["ID"] = "";
	$fieldLabelsppmain["English"]["but"] = "but";
	$fieldToolTipsppmain["English"]["but"] = "";
	$fieldLabelsppmain["English"]["Category"] = "Category";
	$fieldToolTipsppmain["English"]["Category"] = "";
	$fieldLabelsppmain["English"]["Subcategory"] = "Subcategory";
	$fieldToolTipsppmain["English"]["Subcategory"] = "";
	$fieldLabelsppmain["English"]["Title"] = "Title";
	$fieldToolTipsppmain["English"]["Title"] = "";
	$fieldLabelsppmain["English"]["Price"] = "Price";
	$fieldToolTipsppmain["English"]["Price"] = "";
	$fieldLabelsppmain["English"]["Details"] = "Details";
	$fieldToolTipsppmain["English"]["Details"] = "";
	$fieldLabelsppmain["English"]["Fullinfo"] = "Fullinfo";
	$fieldToolTipsppmain["English"]["Fullinfo"] = "";
	$fieldLabelsppmain["English"]["Picture"] = "Picture";
	$fieldToolTipsppmain["English"]["Picture"] = "";
	$fieldLabelsppmain["English"]["UserID"] = "UserID";
	$fieldToolTipsppmain["English"]["UserID"] = "";
	if (count($fieldToolTipsppmain["English"])){
		$tdatappmain[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Spanish")
{
	$fieldLabelsppmain["Spanish"]=array();
	$fieldToolTipsppmain["Spanish"]=array();
	$fieldLabelsppmain["Spanish"]["ID"] = "ID";
	$fieldToolTipsppmain["Spanish"]["ID"] = "";
	$fieldLabelsppmain["Spanish"]["but"] = "but";
	$fieldToolTipsppmain["Spanish"]["but"] = "";
	$fieldLabelsppmain["Spanish"]["Category"] = "Category";
	$fieldToolTipsppmain["Spanish"]["Category"] = "";
	$fieldLabelsppmain["Spanish"]["Subcategory"] = "Subcategory";
	$fieldToolTipsppmain["Spanish"]["Subcategory"] = "";
	$fieldLabelsppmain["Spanish"]["Title"] = "Title";
	$fieldToolTipsppmain["Spanish"]["Title"] = "";
	$fieldLabelsppmain["Spanish"]["Price"] = "Price";
	$fieldToolTipsppmain["Spanish"]["Price"] = "";
	$fieldLabelsppmain["Spanish"]["Details"] = "Details";
	$fieldToolTipsppmain["Spanish"]["Details"] = "";
	$fieldLabelsppmain["Spanish"]["Fullinfo"] = "Fullinfo";
	$fieldToolTipsppmain["Spanish"]["Fullinfo"] = "";
	$fieldLabelsppmain["Spanish"]["Picture"] = "Picture";
	$fieldToolTipsppmain["Spanish"]["Picture"] = "";
	$fieldLabelsppmain["Spanish"]["UserID"] = "UserID";
	$fieldToolTipsppmain["Spanish"]["UserID"] = "";
	if (count($fieldToolTipsppmain["Spanish"])){
		$tdatappmain[".isUseToolTips"]=true;
	}
}


	

	

$tdatappmain[".shortTableName"] = "ppmain";
$tdatappmain[".nSecOptions"] = 0;
$tdatappmain[".recsPerRowList"] = 1;	
$tdatappmain[".tableGroupBy"] = "0";
$tdatappmain[".mainTableOwnerID"] = "";
$tdatappmain[".moveNext"] = 1;




$tdatappmain[".showAddInPopup"] = false;

$tdatappmain[".showEditInPopup"] = false;

$tdatappmain[".showViewInPopup"] = false;


$tdatappmain[".fieldsForRegister"] = array();

$tdatappmain[".listAjax"] = false;

	$tdatappmain[".audit"] = true;

	$tdatappmain[".locking"] = false;
	
$tdatappmain[".view"] = true;

$tdatappmain[".exportTo"] = true;

$tdatappmain[".printFriendly"] = true;


$tdatappmain[".showSimpleSearchOptions"] = false;

$tdatappmain[".showSearchPanel"] = true;


$tdatappmain[".isUseAjaxSuggest"] = true;



// button handlers file names

$tdatappmain[".addPageEvents"] = false;

$tdatappmain[".arrKeyFields"][] = "ID";

// use datepicker for search panel
$tdatappmain[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdatappmain[".isUseTimeForSearch"] = false;

$tdatappmain[".isUseiBox"] = false;


	

	



$tdatappmain[".isUseInlineJs"] = $tdatappmain[".isUseInlineAdd"] || $tdatappmain[".isUseInlineEdit"];

$tdatappmain[".allSearchFields"] = array();

$tdatappmain[".globSearchFields"][] = "Category";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Category", $tdatappmain[".allSearchFields"]))
{
	$tdatappmain[".allSearchFields"][] = "Category";	
}
$tdatappmain[".globSearchFields"][] = "Subcategory";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Subcategory", $tdatappmain[".allSearchFields"]))
{
	$tdatappmain[".allSearchFields"][] = "Subcategory";	
}
$tdatappmain[".globSearchFields"][] = "Title";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Title", $tdatappmain[".allSearchFields"]))
{
	$tdatappmain[".allSearchFields"][] = "Title";	
}
$tdatappmain[".globSearchFields"][] = "Price";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Price", $tdatappmain[".allSearchFields"]))
{
	$tdatappmain[".allSearchFields"][] = "Price";	
}
$tdatappmain[".globSearchFields"][] = "Details";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Details", $tdatappmain[".allSearchFields"]))
{
	$tdatappmain[".allSearchFields"][] = "Details";	
}


$tdatappmain[".googleLikeFields"][] = "ID";
$tdatappmain[".googleLikeFields"][] = "but";
$tdatappmain[".googleLikeFields"][] = "Category";
$tdatappmain[".googleLikeFields"][] = "Subcategory";
$tdatappmain[".googleLikeFields"][] = "Title";
$tdatappmain[".googleLikeFields"][] = "Price";
$tdatappmain[".googleLikeFields"][] = "Details";
$tdatappmain[".googleLikeFields"][] = "Fullinfo";
$tdatappmain[".googleLikeFields"][] = "Picture";
$tdatappmain[".googleLikeFields"][] = "UserID";



$tdatappmain[".advSearchFields"][] = "ID";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ID", $tdatappmain[".allSearchFields"])) 
{
	$tdatappmain[".allSearchFields"][] = "ID";	
}
$tdatappmain[".advSearchFields"][] = "but";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("but", $tdatappmain[".allSearchFields"])) 
{
	$tdatappmain[".allSearchFields"][] = "but";	
}
$tdatappmain[".advSearchFields"][] = "Category";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Category", $tdatappmain[".allSearchFields"])) 
{
	$tdatappmain[".allSearchFields"][] = "Category";	
}
$tdatappmain[".advSearchFields"][] = "Subcategory";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Subcategory", $tdatappmain[".allSearchFields"])) 
{
	$tdatappmain[".allSearchFields"][] = "Subcategory";	
}
$tdatappmain[".advSearchFields"][] = "Title";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Title", $tdatappmain[".allSearchFields"])) 
{
	$tdatappmain[".allSearchFields"][] = "Title";	
}
$tdatappmain[".advSearchFields"][] = "Price";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Price", $tdatappmain[".allSearchFields"])) 
{
	$tdatappmain[".allSearchFields"][] = "Price";	
}
$tdatappmain[".advSearchFields"][] = "Details";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Details", $tdatappmain[".allSearchFields"])) 
{
	$tdatappmain[".allSearchFields"][] = "Details";	
}
$tdatappmain[".advSearchFields"][] = "Fullinfo";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Fullinfo", $tdatappmain[".allSearchFields"])) 
{
	$tdatappmain[".allSearchFields"][] = "Fullinfo";	
}
$tdatappmain[".advSearchFields"][] = "Picture";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("Picture", $tdatappmain[".allSearchFields"])) 
{
	$tdatappmain[".allSearchFields"][] = "Picture";	
}
$tdatappmain[".advSearchFields"][] = "UserID";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("UserID", $tdatappmain[".allSearchFields"])) 
{
	$tdatappmain[".allSearchFields"][] = "UserID";	
}

$tdatappmain[".isTableType"] = "list";


	
$tdatappmain[".isVerLayout"] = true;



// Access doesn't support subqueries from the same table as main
$tdatappmain[".subQueriesSupAccess"] = true;





$tdatappmain[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatappmain[".strOrderBy"] = $gstrOrderBy;
	
$tdatappmain[".orderindexes"] = array();

$tdatappmain[".sqlHead"] = "select ID,  ID AS but,  Category,  Subcategory,  Title,  Price,  Details,  Fullinfo,  Picture,  UserID";
$tdatappmain[".sqlFrom"] = "FROM ppmain";
$tdatappmain[".sqlWhereExpr"] = "";
$tdatappmain[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatappmain[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatappmain[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "ID";
	$tdatappmain[".Keys"] = $tableKeys;

//	ID
	$fdata = array();
	$fdata["strName"] = "ID";
	$fdata["ownerTable"] = "ppmain";
	$fdata["Label"]=GetFieldLabel("ppmain","ID"); 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ID";
	
		$fdata["FullName"]= "ID";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		
		
		
		
		
		
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				
		
				
		
		
		
			$tdatappmain["ID"]=$fdata;
//	but
	$fdata = array();
	$fdata["strName"] = "but";
	$fdata["ownerTable"] = "ppmain";
	$fdata["Label"]=GetFieldLabel("ppmain","but"); 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "Custom";
	
		
		
		
		
		
	$fdata["GoodName"]= "but";
	
		$fdata["FullName"]= "ID";
	
		
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatappmain["but"]=$fdata;
//	Category
	$fdata = array();
	$fdata["strName"] = "Category";
	$fdata["ownerTable"] = "ppmain";
	$fdata["Label"]=GetFieldLabel("ppmain","Category"); 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="CategoryName";
	$fdata["LinkFieldType"]=200;
	$fdata["DisplayField"]="CategoryName";
				$fdata["LookupTable"]="ppcategory";
	$fdata["LookupOrderBy"]="CategoryName";
																			
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Category";
	
		$fdata["FullName"]= "Category";
	
		
		
		
		
		
				$fdata["Index"]= 3;
				
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatappmain["Category"]=$fdata;
//	Subcategory
	$fdata = array();
	$fdata["strName"] = "Subcategory";
	$fdata["ownerTable"] = "ppmain";
	$fdata["Label"]=GetFieldLabel("ppmain","Subcategory"); 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="SubcategoryName";
	$fdata["LinkFieldType"]=200;
	$fdata["DisplayField"]="SubcategoryName";
				$fdata["LookupTable"]="ppsubcategory";
	$fdata["LookupOrderBy"]="SubcategoryName";
																			
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Subcategory";
	
		$fdata["FullName"]= "Subcategory";
	
		
		
		
		
		
				$fdata["Index"]= 4;
				
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatappmain["Subcategory"]=$fdata;
//	Title
	$fdata = array();
	$fdata["strName"] = "Title";
	$fdata["ownerTable"] = "ppmain";
	$fdata["Label"]=GetFieldLabel("ppmain","Title"); 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Title";
	
		$fdata["FullName"]= "Title";
	
		
		
		
		
		
				$fdata["Index"]= 5;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatappmain["Title"]=$fdata;
//	Price
	$fdata = array();
	$fdata["strName"] = "Price";
	$fdata["ownerTable"] = "ppmain";
	$fdata["Label"]=GetFieldLabel("ppmain","Price"); 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Price";
	
		$fdata["FullName"]= "Price";
	
		
		
		
		
		
				$fdata["Index"]= 6;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatappmain["Price"]=$fdata;
//	Details
	$fdata = array();
	$fdata["strName"] = "Details";
	$fdata["ownerTable"] = "ppmain";
	$fdata["Label"]=GetFieldLabel("ppmain","Details"); 
	
		
		
	$fdata["FieldType"]= 201;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Details";
	
		$fdata["FullName"]= "Details";
	
		
		
		
		
		
				$fdata["Index"]= 7;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=250";
		$fdata["nRows"] = 250;
			$fdata["EditParams"].= " cols=500";
		$fdata["nCols"] = 500;
		
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatappmain["Details"]=$fdata;
//	Fullinfo
	$fdata = array();
	$fdata["strName"] = "Fullinfo";
	$fdata["ownerTable"] = "ppmain";
	$fdata["Label"]=GetFieldLabel("ppmain","Fullinfo"); 
	
		
		
	$fdata["FieldType"]= 201;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "Fullinfo";
	
		$fdata["FullName"]= "Fullinfo";
	
		
		
		
		
		
				$fdata["Index"]= 8;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=250";
		$fdata["nRows"] = 250;
			$fdata["EditParams"].= " cols=500";
		$fdata["nCols"] = 500;
		
		
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatappmain["Fullinfo"]=$fdata;
//	Picture
	$fdata = array();
	$fdata["strName"] = "Picture";
	$fdata["ownerTable"] = "ppmain";
	$fdata["Label"]=GetFieldLabel("ppmain","Picture"); 
	
		
		$fdata["LinkPrefix"]="files/"; 
	
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "File-based Image";
	
		
		
			$fdata["ImageWidth"] = 120;
	$fdata["ImageHeight"] = 120;
	
		
		
	$fdata["GoodName"]= "Picture";
	
		$fdata["FullName"]= "Picture";
	
		
		
		
		
		
				$fdata["Index"]= 9;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatappmain["Picture"]=$fdata;
//	UserID
	$fdata = array();
	$fdata["strName"] = "UserID";
	$fdata["ownerTable"] = "ppmain";
	$fdata["Label"]=GetFieldLabel("ppmain","UserID"); 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "UserID";
	
		$fdata["FullName"]= "UserID";
	
		
		
		
		
		
				$fdata["Index"]= 10;
				$fdata["EditParams"]="";
			
		
		
		
		
		
		
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				
		
				
		
		
		
			$tdatappmain["UserID"]=$fdata;


	
$tables_data["ppmain"]=&$tdatappmain;
$field_labels["ppmain"] = &$fieldLabelsppmain;
$fieldToolTips["ppmain"] = &$fieldToolTipsppmain;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["ppmain"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["ppmain"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










function createSqlQuery_ppmain()
{
$proto0=array();
$proto0["m_strHead"] = "select";
$proto0["m_strFieldList"] = "ID,  ID AS but,  Category,  Subcategory,  Title,  Price,  Details,  Fullinfo,  Picture,  UserID";
$proto0["m_strFrom"] = "FROM ppmain";
$proto0["m_strWhere"] = "";
$proto0["m_strOrderBy"] = "";
$proto0["m_strTail"] = "";
$proto1=array();
$proto1["m_sql"] = "";
$proto1["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto1["m_column"]=$obj;
$proto1["m_contained"] = array();
$proto1["m_strCase"] = "";
$proto1["m_havingmode"] = "0";
$proto1["m_inBrackets"] = "0";
$proto1["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto1);

$proto0["m_where"] = $obj;
$proto3=array();
$proto3["m_sql"] = "";
$proto3["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto3["m_column"]=$obj;
$proto3["m_contained"] = array();
$proto3["m_strCase"] = "";
$proto3["m_havingmode"] = "0";
$proto3["m_inBrackets"] = "0";
$proto3["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto3);

$proto0["m_having"] = $obj;
$proto0["m_fieldlist"] = array();
						$proto5=array();
			$obj = new SQLField(array(
	"m_strName" => "ID",
	"m_strTable" => "ppmain"
));

$proto5["m_expr"]=$obj;
$proto5["m_alias"] = "";
$obj = new SQLFieldListItem($proto5);

$proto0["m_fieldlist"][]=$obj;
						$proto7=array();
			$obj = new SQLField(array(
	"m_strName" => "ID",
	"m_strTable" => "ppmain"
));

$proto7["m_expr"]=$obj;
$proto7["m_alias"] = "but";
$obj = new SQLFieldListItem($proto7);

$proto0["m_fieldlist"][]=$obj;
						$proto9=array();
			$obj = new SQLField(array(
	"m_strName" => "Category",
	"m_strTable" => "ppmain"
));

$proto9["m_expr"]=$obj;
$proto9["m_alias"] = "";
$obj = new SQLFieldListItem($proto9);

$proto0["m_fieldlist"][]=$obj;
						$proto11=array();
			$obj = new SQLField(array(
	"m_strName" => "Subcategory",
	"m_strTable" => "ppmain"
));

$proto11["m_expr"]=$obj;
$proto11["m_alias"] = "";
$obj = new SQLFieldListItem($proto11);

$proto0["m_fieldlist"][]=$obj;
						$proto13=array();
			$obj = new SQLField(array(
	"m_strName" => "Title",
	"m_strTable" => "ppmain"
));

$proto13["m_expr"]=$obj;
$proto13["m_alias"] = "";
$obj = new SQLFieldListItem($proto13);

$proto0["m_fieldlist"][]=$obj;
						$proto15=array();
			$obj = new SQLField(array(
	"m_strName" => "Price",
	"m_strTable" => "ppmain"
));

$proto15["m_expr"]=$obj;
$proto15["m_alias"] = "";
$obj = new SQLFieldListItem($proto15);

$proto0["m_fieldlist"][]=$obj;
						$proto17=array();
			$obj = new SQLField(array(
	"m_strName" => "Details",
	"m_strTable" => "ppmain"
));

$proto17["m_expr"]=$obj;
$proto17["m_alias"] = "";
$obj = new SQLFieldListItem($proto17);

$proto0["m_fieldlist"][]=$obj;
						$proto19=array();
			$obj = new SQLField(array(
	"m_strName" => "Fullinfo",
	"m_strTable" => "ppmain"
));

$proto19["m_expr"]=$obj;
$proto19["m_alias"] = "";
$obj = new SQLFieldListItem($proto19);

$proto0["m_fieldlist"][]=$obj;
						$proto21=array();
			$obj = new SQLField(array(
	"m_strName" => "Picture",
	"m_strTable" => "ppmain"
));

$proto21["m_expr"]=$obj;
$proto21["m_alias"] = "";
$obj = new SQLFieldListItem($proto21);

$proto0["m_fieldlist"][]=$obj;
						$proto23=array();
			$obj = new SQLField(array(
	"m_strName" => "UserID",
	"m_strTable" => "ppmain"
));

$proto23["m_expr"]=$obj;
$proto23["m_alias"] = "";
$obj = new SQLFieldListItem($proto23);

$proto0["m_fieldlist"][]=$obj;
$proto0["m_fromlist"] = array();
												$proto25=array();
$proto25["m_link"] = "SQLL_MAIN";
			$proto26=array();
$proto26["m_strName"] = "ppmain";
$proto26["m_columns"] = array();
$proto26["m_columns"][] = "Category";
$proto26["m_columns"][] = "Details";
$proto26["m_columns"][] = "Fullinfo";
$proto26["m_columns"][] = "ID";
$proto26["m_columns"][] = "Picture";
$proto26["m_columns"][] = "Price";
$proto26["m_columns"][] = "Subcategory";
$proto26["m_columns"][] = "Title";
$proto26["m_columns"][] = "UserID";
$obj = new SQLTable($proto26);

$proto25["m_table"] = $obj;
$proto25["m_alias"] = "";
$proto27=array();
$proto27["m_sql"] = "";
$proto27["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto27["m_column"]=$obj;
$proto27["m_contained"] = array();
$proto27["m_strCase"] = "";
$proto27["m_havingmode"] = "0";
$proto27["m_inBrackets"] = "0";
$proto27["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto27);

$proto25["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto25);

$proto0["m_fromlist"][]=$obj;
$proto0["m_groupby"] = array();
$proto0["m_orderby"] = array();
$obj = new SQLQuery($proto0);

return $obj;
}
$queryData_ppmain = createSqlQuery_ppmain();
$tdatappmain[".sqlquery"] = $queryData_ppmain;



include_once(getabspath("include/ppmain_events.php"));
$tableEvents["ppmain"] = new eventclass_ppmain;
$tdatappmain[".hasEvents"] = true;

?>
